<?php
/*

This is Page 1 of the tutorial. It is intended to be viewed after the
introductory page, index.php, in this same folder.

Again, below we are importing the ENTIRE functionality available within NMOX
Server PHP-MAX with a single require. The file 'x.php' both imports everything,
and also instantiates the NMOX class for us under the variable $X. We will be
putting it to work shortly.

 * 
 * @author David Christian Liedle <david.liedle@gmail.com>
 * @link   http://nmox.org/
 *
 */

require_once('../x.php');

$example_paragraph = 'Take a look at the source of this PHP file to see how this
                      paragraph was created.';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <link rel="Shortcut Icon"
              href="../../favicon.ico"
              type="image/x-icon" />
        <title>NMOX Server PHP-MAX Tutorial</title>

        <meta name="Description" content="NMOX Server PHP-MAX Tutorial" />
        <meta name="Keywords" content="NMOX,
                                       Server,
                                       PHP-MAX,
                                       New Media On X,
                                       Tutorial" />

    </head>

   <body style="width: 720px; font-family: Georgia">
    
        <p id="top">
            <a href="../../" title="Navigate &#8216;above&#8217; the /nmox/
                             folder to your website.">Your Site</a> &rsaquo;
            <a href="../" title="/nmox/">NMOX Server Folder</a> &rsaquo;
            <a href="./" title="/nmox/tutorial/">Tutorial Folder</a> &rsaquo;
            Page 1 (a.k.a., <code>/nmox/tutorial/page1.php</code>)
        </p>
        <?=xHR()?>
        
        <?=xH1('NMOX Server PHP-MAX Tutorial')?>
        <?=xH2('Page 1')?>
        
        <p><a href="../" title="/nmox/">Up</a>
           <a href="index.php" title="/nmox/tutorial/index.php">Back</a>
           <a href="page2.php" title="/nmox/tutorial/page2.php">Next</a></p>
        
        <p>I have set a simple string variable at the top of this page, inside
        the PHP block, giving <code>$example_paragraph</code> the value of the
        text that I wanted to display there. I &#8216;fed&#8217; that value into
        the <code>xP()</code> function from the xStatic library, which
        &#8216;wrapped&#8217; that value with <code>&lt;p&gt;</code> and
        <code>&lt;/p&gt;</code>, which I placed inline with my other content on
        this page using the short PHP tag instructing the returned value to echo
        in place. (The short tag <code>&lt;?=</code> instructs PHP to echo any
        variable or value returned from a function).</p>
        
        <p>That&#8217;s all for page1. <a href="page2.php"
        title="/nmox/tutorial/page2.php">Continue</a> on to the next page of the
        tutorial, and get ready to start putting NMOX Server to work!</p>
        
        <p><a href="#top" title="Jump to the top of this page">Top</a>
           <a href="../" title="/nmox/">Up</a>
           <a href="index.php" title="/nmox/tutorial/index.php">Back</a>
           <a href="page2.php" title="/nmox/tutorial/page2.php">Next</a></p>
        
        <?=xHR()?>
        <p><center>Copyright &copy;2008 David Christian Liedle. All rights
        reserved.<br />
        <a href="http://nmox.org/" title="Visit NMOX.org">http://nmox.org/</a>
        </center>
        </p>
        
    </body>
    
</html>
